import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Vehicle car1 = new Car(sc.nextInt(), sc.nextDouble(), sc.nextInt());
        Vehicle car2 = new Car(sc.nextInt(), sc.nextDouble(), sc.nextInt());
        Truck truck1 = new Truck(sc.nextInt(), sc.nextDouble(), sc.nextInt(),sc.nextDouble());
        Truck truck2 = new Truck(sc.nextInt(), sc.nextDouble(), sc.nextInt(), sc.nextDouble());
        System.out.println("这是第一个Car对象,");
        System.out.println("车轮个数为: "+car1.getWheels()+", 车重为: "+ car1.getWeight());
        car1.isLoader();
        System.out.println();
        System.out.println("这是第二个Car对象,");
        System.out.println("车轮个数为: "+car2.getWheels()+", 车重为: "+ car2.getWeight());
        car2.isLoader();
        System.out.println();
        System.out.println("这是第一个Truck对象,");
        System.out.println("车轮个数为: "+truck1.getWheels()+", 车重为: "+ truck1.getWeight());
        truck1.isLoader();
        truck1.isOverweiht();
        System.out.println();
        System.out.println("这是第二个Truck对象,");
        System.out.println("车轮个数为: "+truck2.getWheels()+", 车重为: "+ truck2.getWeight());
        truck2.isLoader();
        truck2.isOverweiht();
    }
}
